package com.example.boot5mysqlatomikos;


import com.example.boot5mysqlatomikos.db1.dao.DBConfig1;
import com.example.boot5mysqlatomikos.db2.dao.DBConfig2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;


@SpringBootApplication(scanBasePackages = {"com.example.boot5mysqlatomikos"})
@EnableConfigurationProperties({DBConfig1.class, DBConfig2.class})
public class Boot5MysqlAtomikosApplication {

    public static void main(String[] args) {
        SpringApplication.run(Boot5MysqlAtomikosApplication.class, args);
        System.out.println("双数据源springboot项目启动......");
    }

}
